package com.assets.asset.service.impl;

import java.util.List;

import com.assets.asset.domain.TReceive;
import com.assets.asset.mapper.TReceiveMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.assets.asset.service.ITReceiveService;

/**
 * 领用Service业务层处理
 *
 * @author bin
 * @date 2023-03-13
 */
@Service
public class TReceiveServiceImpl implements ITReceiveService
{
    @Autowired
    private TReceiveMapper tReceiveMapper;

    /**
     * 查询领用
     *
     * @param id 领用主键
     * @return 领用
     */
    @Override
    public TReceive selectTReceiveById(Long id)
    {
        return tReceiveMapper.selectTReceiveById(id);
    }

    /**
     * 查询领用列表
     *
     * @param tReceive 领用
     * @return 领用
     */
    @Override
    public List<TReceive> selectTReceiveList(TReceive tReceive)
    {
        return tReceiveMapper.selectTReceiveList(tReceive);
    }

    /**
     * 新增领用
     *
     * @param tReceive 领用
     * @return 结果
     */
    @Override
    public int insertTReceive(TReceive tReceive)
    {
        return tReceiveMapper.insertTReceive(tReceive);
    }

    /**
     * 修改领用
     *
     * @param tReceive 领用
     * @return 结果
     */
    @Override
    public int updateTReceive(TReceive tReceive)
    {
        return tReceiveMapper.updateTReceive(tReceive);
    }

    /**
     * 批量删除领用
     *
     * @param ids 需要删除的领用主键
     * @return 结果
     */
    @Override
    public int deleteTReceiveByIds(Long[] ids)
    {
        return tReceiveMapper.deleteTReceiveByIds(ids);
    }

    /**
     * 删除领用信息
     *
     * @param id 领用主键
     * @return 结果
     */
    @Override
    public int deleteTReceiveById(Long id)
    {
        return tReceiveMapper.deleteTReceiveById(id);
    }

//    /**
//     * 获取领用人修改资产领用人
//     */
//    @Override
//    public String updateAssetRecipient(String assetCode,String recipient) {
//        return tReceiveMapper.updateAssetRecipient(assetCode,recipient);
//    }
}
